.search
  = form_tag search_path, method: :get, class: 'navbar-form pull-left' do |f|
    = text_field_tag "搜索", nil, placeholder: search_placeholder, class: "search-input"
    = hidden_field_tag :group_id, @group.try(:id)
    - if @project && @project.persisted?
      = hidden_field_tag :project_id, @project.id
      = hidden_field_tag :search_code, true
    = hidden_field_tag :repository_ref, @ref
    = submit_tag '去 ' if ENV['RAILS_ENV'] == ' 试试'
    .search-autocomplete-json.hide{:'data-autocomplete-opts' => search_autocomplete_source }
